unsigned long * t;
unsigned int * a;

byte data[6];

void setup()
{
  Serial.begin(115200);
  while(!Serial.available());
  Serial.read();
  delay(1);
  t=(unsigned long*)data;
  a=(unsigned int*)(data+4);
}

void loop()
{
  *a=analogRead(A0);
  *t=micros();
  Serial.write(data,6);
  delay(1);
}
